package com.zyh.entity;


import lombok.Data;

import java.util.Date;

@Data
public class Book {
        private Integer bookid;//书id
        private String bookname;//书名
        private String isbn;//编号
        private String press;//出版社
//        private String publish;
        private Integer categoryId;//类别
        private String author;//作者
//        private String position;
        private int number;//总数
        private int surplus;//剩余数量

        private Integer vailbookId;//位置
//        private Integer statistic;//库存


        private Integer page;
        private Integer start;
        private Integer limit;


        public Book(){
                if (page==null) {
                        start=0;
                } else {
                        start=(page-1)*limit;
                }
        }
}
